package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author WuZH
 * @since 2024-08-06
 */
@Getter
@Setter
@TableName ( "file_info" )
@ApiModel ( value = "FileEntity对象", description = "文件表" )
public class FileEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "文件Id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "存储硬盘地址" )
    @TableField ( "diskUrl" )
    private String diskUrl;

    @ApiModelProperty ( "url" )
    @TableField ( "fileUrl" )
    private String fileUrl;

    @ApiModelProperty ( "图片名称" )
    @TableField ( "title" )
    private String title;

    @ApiModelProperty ( "文件类型,1系统文件,2发电站文件,3设备文件,4维保文件,5工单文件,6计划文件" )
    @TableField ( "type" )
    private Integer type;

    @ApiModelProperty ( "关联表Id" )
    @TableField ( "relationId" )
    private String relationId;

    @ApiModelProperty ( "上传数据" )
    @TableField ( "createTime" )
    private Date createTime;

    @ApiModelProperty ( "更新时间" )
    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
